<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    var newByteView = new Uint8Array(4);
    var dataView = new DataView(newByteView.buffer);
    dataView.setInt8(0, 7 + 4);
    dataView.setInt8(1, 8 + 4);
    dataView.setInt8(2, 244);//244 MarkCompressProtocol.TYPE_STRING
    dataView.setInt8(3, 1);
    dataView.setInt8(4, 2);
    console.log(newByteView.toString());

</script>
<body>

</body>
</html>